//
//  ChatManager.h
//  PigMarket
//
//  Created by mac on 2019/6/4.
//  Copyright © 2019 felix.pigmarket.oc. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^LoginSuccBlock)(void);
typedef void (^LoginFailBlock)(int code, NSString *msg);

@interface ChatManager : NSObject

@property (nonatomic , copy) LoginSuccBlock loginSuccBlock;
@property (nonatomic , copy) LoginFailBlock loginFailBlock;

+ (instancetype)sharedInstance;
- (void)loginIMWithUserName:(NSString *)userName
                    userSig:(NSString *)userSig
                       succ:(void(^)(void))succ
                       fail:(void(^) (int code, NSString *msg))fail;
@end

